package com.ck.common.model.bo;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 *
 * <p>Title: DeviceReportBO</p>
 * <p>Description: 终端上报信息BO</p>
 * @author huangf
 * @date 2018年7月18日
 */
public class DeviceReportBO implements Serializable {
	private static final long serialVersionUID = 1L;
	/** deviceCode */
	private String deviceCode;
	/** 终端内网IP */
	private String intranetIP;
	/** 终端外网IP */
	private String externalIP;
	/** 终端状态 */
	private Integer deviceStatus;
	/** 终端最近一次上报时间 */
	private Long lastReportTime;
	/** 软件版本 */
	private String softwareVersion;
	/** 软件版本 */
	private Integer softwareVersionCode;
	/** 固件版本 */
	private String firmwareVersion;
	/** 联网方式 */
	private String networkingWay;

	public String getNetworkingWay() {
		return networkingWay;
	}

	public void setNetworkingWay(String networkingWay) {
		this.networkingWay = networkingWay;
	}

	public String getDeviceCode() {
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}

	public String getIntranetIP() {
		return intranetIP;
	}

	public void setIntranetIP(String intranetIP) {
		this.intranetIP = intranetIP;
	}

	public String getExternalIP() {
		return externalIP;
	}

	public void setExternalIP(String externalIP) {
		this.externalIP = externalIP;
	}

	public Integer getDeviceStatus() {
		return deviceStatus;
	}

	public void setDeviceStatus(Integer deviceStatus) {
		this.deviceStatus = deviceStatus;
	}

	public Long getLastReportTime() {
		return lastReportTime;
	}

	public void setLastReportTime(Long lastReportTime) {
		this.lastReportTime = lastReportTime;
	}

	public String getSoftwareVersion() {
		return softwareVersion;
	}

	public void setSoftwareVersion(String softwareVersion) {
		this.softwareVersion = softwareVersion;
	}

	public Integer getSoftwareVersionCode() {
		return softwareVersionCode;
	}

	public void setSoftwareVersionCode(Integer softwareVersionCode) {
		this.softwareVersionCode = softwareVersionCode;
	}

	public String getFirmwareVersion() {
		return firmwareVersion;
	}

	public void setFirmwareVersion(String firmwareVersion) {
		this.firmwareVersion = firmwareVersion;
	}

	public DeviceReportBO() {
		super();
	}

	public DeviceReportBO(String deviceCode, String intranetIP, String externalIP, Integer deviceStatus, Long lastReportTime, String softwareVersion, Integer softwareVersionCode,String firmwareVersion,String networkingWay) {
		this.deviceCode = deviceCode;
		this.intranetIP = intranetIP;
		this.externalIP = externalIP;
		this.deviceStatus = deviceStatus;
		this.lastReportTime = lastReportTime;
		this.softwareVersion = softwareVersion;
		this.softwareVersionCode = softwareVersionCode;
		this.firmwareVersion = firmwareVersion;
		if(networkingWay!=null){
			try {
				networkingWay= URLDecoder.decode(networkingWay,"UTF-8");
			} catch (UnsupportedEncodingException e) {
			}
			this.networkingWay = networkingWay;
		}
	}
}
